Architecture: any
Depends:
libshiboken6-py3-6.10 (= ${binary:Version}),
- python3-dev,
shiboken6 (= ${source:Version}),
${misc:Depends},
+ ${pyside6:python3-default-dev},
${shlibs:Depends},
Description: CPython bindings generator for C++ libraries (development files)
Shiboken6 is a bindings generator for C++ libraries that outputs CPython
Depends:
python3-pyside6.qtcore,
${misc:Depends},
+ ${pyside6:python3-default-dev},
${python3:Depends},
${shlibs:Depends},
Description: development tools for PySide6 (lupdate)
PYBUILD_BUILD_ARGS += --parallel=$(or $(DEB_BUILD_OPTION_PARALLEL),$(DEB_BUILD_OPTION_PARALLEL),1)
PYBUILD_INSTALL_ARGS = --reuse-build --verbose-build
+# default Python interpreter (and the next version) for dependencies
+PYVER := $(shell py3versions -d -v)
+NEXTPYVER := $(shell echo $(PYVER) | awk 'BEGIN{FS="." }{print $$1 "." $$2 + 1}')
+
## Package compilation options
# 1. if sccache is installed then use it
--test-args '{interpreter} testrunner.py test --buildno=-1'
endif
endif
+
+
+execute_before_dh_gencontrol:
+ # Generate a versioned dependency on python3-dev that matches the
+ # current default Python interpreter only. These -dev packages rely
+ # on `python3` as a command and point at the versioned paths to the
+ # headers for that specific version
+ echo "pyside6:python3-default-dev=python3-dev (>= $(PYVER)), python3-dev (<< $(NEXTPYVER)~)" >> debian/libshiboken6-dev.substvars
+ echo "pyside6:python3-default-dev=python3-dev (>= $(PYVER)), python3-dev (<< $(NEXTPYVER)~)" >> debian/pyside6-tools.substvars